POV-Ray : Newsgroups : povray.text.scene-files : ugly moire effects : ugly moire effects Server Time
2 Jul 2024 03:27:14 EDT (-0400)
  ugly moire effects  
From: wich
Date: 8 Aug 2002 17:48:03
Message: <3d52e713@news.povray.org>
Hi,

I have a problem with Moire effects with usign a texture with a fine
vertical striping (simulating a trapeziod shaped vertical cladding).

Any method to prevent this ugly Moire effects (see sample input)?

Here is a photo that shows what I approximaty want to achieve with my Povray
model:
http://www.priclad.nl/images/wallnikeklein.jpg

(the photo has a horizontal cladding, whilst my model has a vertical
cladding)

Any suggestions are very welcome!


// Moire problem


global_settings { assumed_gamma 1.6}     // 2.2

#include "shapes.inc"
#include "colors.inc"
#include "textures.inc"




#declare distance_view=

camera{location <100, 12, 70>
   direction <0.0, 0.0, 1.0>
   up  <0.0, 1.0, 0.0>
   right <4/3, 0.0, 0.0>
 look_at <15, 3, 30>  }


camera {distance_view}

light_source {<200.0, 200.0, -150.0> colour red 1 green 1 blue 1 }






plane { y, 0
texture {pigment {color red .7 green .7 blue .7}
 finish {
    ambient 0.5
    diffuse 0.5
    phong 0.75
    phong_size 25

  }  }   }



union{
box{ <0, 0, 0>  <10,  15, 60> }
box{ <0, 0, 0>  <10,  7, 60>  translate <75, 0, 10>}
//                                                    ___     ___
// texture simulating trapeziod vertical cladding ___/   \___/   \___
//

 texture{
   pigment{
     gradient z  color_map{
     [0.    red 172/255     green 182/255     blue 184/255]
     [0.24  red 172/255     green 182/255     blue 184/255]
     [0.242 red 172/255*1.2 green 182/255*1.2 blue 184/255*1.2]
     [0.48  red 172/255*1.2 green 182/255*1.2 blue 184/255*1.2]
     [0.482 red 172/255     green 182/255     blue 184/255]
     [0.76  red 172/255     green 182/255     blue 184/255]
     [0.762 red 172/255*0.8 green 182/255*0.8 blue 184/255*0.8]
     [1.0   red 172/255*0.8 green 182/255*0.8 blue 184/255*0.8]}     scale
0.24
   }

  finish {
    ambient 0.5
    diffuse 0.5
    phong 0.75
    phong_size 25

  }  }
}


Post a reply to this message


Attachments:
Download 'moire.pov.txt' (2 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.